@charset "utf-8";
@import "reset";
@import "Login";
@import "no-login";
@import "search";
//要跟rem.js里面的数值相同
$fs:64px;
html {
    font-size: $fs;
}

//将px单位换算rem单位
@function r($px) {
    @return $px/$fs*1rem
}

//将px单位换算成vh单位
@function p2vh($px) {
    @return $px/$px*100vh/1136px
}

//将px单位换算成vw单位
@function p2vh($px) {
    @return $px*100vw/640px;
}

html,
body,
.Login,
.no-login {
    height: 100%;
}

.disappear {
    display: none;
}

.header {
    position: fixed;
    width: 100%;
    height: r(89px);
    background: url(../img/header.png);
    z-index: 99999;
    img {
        margin: 0 auto;
        width: r(264px);
        height: r(39px);
        padding-top: r(25px);
        display: block;
    }
    a:first-child i {
        position: absolute;
        top: r(27px);
        left: r(15px);
        color: white;
        width: r(40px);
        height: r(40px);
    }
    a:last-child {
        position: absolute;
        display: block;
        width: r(40px);
        height: r(40px);
        border: 1px solid #ffffff;
        border-radius: 50%;
        top: r(23px);
        right: r(17px);
        text-align: center;
        z-index: 999;
        i {
            position: absolute;
            color: white;
            font-size: r(25px);
            top: r(4px);
            right: r(8px);
        }
    }
}

.banner {
    padding-top: r(89px);
    position: relative;
    .lunbo {
        position: initial;
        width: r(640px);
        height: r(358px);
        overflow: hidden;
        img {
            display: block;
            width: 100%;
            height: 100%;
        }
    }
    .neirong {
        position: absolute;
        display: block;
        width: r(640px);
        height: r(104px);
        background-color: rgba(0, 0, 0, 0.4);
        bottom: 0;
        z-index: 999;
        p {
            display: block;
            width: r(575px);
            height: r(32px);
            font-size: r(26.63px);
            margin: 0 auto;
            overflow: hidden;
            white-space: nowrap;
            color: white;
            text-overflow: ellipsis;
            line-height: r(32px);
            padding-top: r(25px);
        }
        i {
            position: absolute;
            color: white;
            font: r(18px) "微软雅黑";
            z-index: 999;
        }
        .icon-like1 {
            bottom: r(15px);
            left: r(30px);
        }
        .icon-eye {
            bottom: r(15px);
            left: r(135px);
        }
        .date {
            position: absolute;
            right: r(17px);
            bottom: r(15px);
            color: white;
            font-size: r(17.76px);
            z-index: 10;
        }
        .cir {
            position: absolute;
            bottom: r(15px);
            left: 40%;
            span {
                float: left;
                display: block;
                width: r(10px);
                height: r(10px);
                border-radius: 50%;
                background-color: #cebeb1;
                margin-left: r(12px);
            }
        }
    }
}

.footer {
    width: 100%;
    position: fixed;
    bottom: -1px;
    border-top: 1px solid #bbb9ba;
    background-color: #f5f5f5;
    height: r(96px);
    font-size: 0;
    margin: initial;
    li {
        margin-top: r(10px);
        display: block;
        font-size: 14px;
        float: left;
        text-align: center;
        height: r(95px);
        margin-left: 8%;
        a {
            color: #8b8b8b;
        }
    }
    .SY {
        width: r(60px);
        img {
            width: r(47px);
            height: r(38px);
            margin: 0 auto;
        }
        img:last-of-type {
            display: none;
        }
        span {
            display: block;
            margin-top: r(5px);
        }
    }
    .GIMC {
        width: r(60px);
        img {
            width: r(48px);
            height: r(40px);
            margin: 0 auto;
        }
        img:last-of-type {
            display: none;
        }
        span {
            display: block;
            margin-top: r(6px);
        }
    }
    .WZ {
        width: r(60px);
        img {
            width: r(41px);
            height: r(41px);
            margin: 0 auto;
        }
        img:last-of-type {
            display: none;
        }
    }
    .ZY {
        width: r(60px);
        img {
            width: r(42px);
            height: r(46px);
            margin: 0 auto;
        }
        img:last-of-type {
            display: none;
        }
        span {
            display: block;
            margin-top: r(-5px);
        }
    }
    .XY {
        width: r(60px);
        img {
            width: r(70px);
            height: r(43px);
            margin: 0 auto;
        }
        img:last-of-type {
            display: none;
        }
        span {
            display: block;
            margin-top: r(-1px);
        }
    }
    .selected_home {
        color: red;
        img:first-of-type {
            display: none;
        }
        img:last-of-type {
            display: block;
        }
        a {
            color: red;
        }
        span {
            display: block;
            margin-top: r(10px);
        }
    }
    .selected_wenzhang {
        color: red;
        img:first-of-type {
            display: none;
        }
        img:last-of-type {
            display: block;
        }
        a {
            color: red;
        }
        span {
            display: block;
            margin-top: r(5px);
        }
    }
    .selected_GIMC {
        color: red;
        img:first-of-type {
            display: none;
        }
        img:last-of-type {
            display: block;
        }
        a {
            color: red;
        }
        span {
            display: block;
            margin-top: r(14px);
        }
    }
    .selected_ziyuan {
        color: red;
        img:first-of-type {
            display: none;
        }
        img:last-of-type {
            display: block;
        }
        a {
            color: red;
        }
        span {
            display: block;
            margin-top: r(0px);
        }
    }
    .selected_xueyuan {
        color: red;
        img:first-of-type {
            display: none;
        }
        img:last-of-type {
            display: block;
        }
        a {
            color: red;
        }
        span {
            display: block;
            margin-top: r(5px);
        }
    }
}